package com.java.entity;

/**
* @ClassName: Doctor
* @Description: 医生实体类
* @author ChenJiaLu
* @date 2023年12月29日 上午10:50:19
*
 */
public class Doctor {
	private int id;
	// 编号
	private String number;
	// 姓名
	private String name;
	// 年龄
	private int age;
	// 学历
	private String degree;
	// 性别
	private String sex;
	// 密码
	private String password;

	public Doctor() {
	}

	public Doctor(String number, String name, int age, String degree, String sex, String password) {
		super();
		this.number = number;
		this.name = name;
		this.age = age;
		this.degree = degree;
		this.sex = sex;
		this.password = password;
	}

	public boolean equals(Object obj) {
		boolean flag = false;
		Doctor doc = (Doctor) obj;
		if (this.number.equals(doc.getNumber())) {
			flag = true;
		}
		return flag;
	}
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String toString() {
		return "Doctor [number=" + number + ", name=" + name + ", age=" + age + ", degree=" + degree + ", sex=" + sex
				+ ", password=" + password + "]";
	}

}
